#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: serviceperiod.cs
 * Purpose: ViewModel class for serviceperiod
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  06/29/2015
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace RH.Web.ViewModels
{
    [Serializable]
	public class ServicePeriodViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a Company")]
        [Display(Name = "Company")] 
		public String CompanyID	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Start Date")]
        [Display(Name = "Start Date")] 
		public String StartDate	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Span Duration")]
        [Display(Name = "Span Duration")] 
		public int SpanDuration	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter Total Number of Span")]
        [Range(1, int.MaxValue, ErrorMessage = "Please enter a value greater than 0")]
        [Display(Name = "Total Number of Span")] 
		public int TotalSpan	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Is Active")]
        [Display(Name = "Is Active")] 
		public bool IsActive	{ get; set; }
            
        //[Required(ErrorMessage= "Please Enter a Created On")]
        [Display(Name = "Created On")] 
		public String CreatedOn	{ get; set; }

        [Required(ErrorMessage = "Please Enter Committed Lead per Span")]
        [Range(1, int.MaxValue, ErrorMessage = "Please enter a value greater than 0")]
        [Display(Name = "Lead per Span")] 
        public int LeadPerSpan { get; set; }
	}
}

